<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
          name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <meta name="csrf-token" content="cPqshWzq8AP6CPB3WnTjWi7etMHthoseg6rFAYVE">
    <title>绑定账号</title>
    <meta name="description" content="登录"/>
    <meta name="Keywords" content="登录"/>
    {include file="common/link" /}
    <style>
        body{
            background-color:#fff;
        }
    </style>
</head>
<body class="body-1">
<div id="container">
    <div class="mui-content" style="background-color:#fff;" id="login_area">
        <div class="dl-top">
            <div class="dl-top-bg"></div>
            <div class="img line_box"><img src="/assets/img/logo.png" ></div>
        </div>
        {:token()}
            <div class="login_form">
                <div class="sz-group bgcolor-white mb10">
                    <div class="sz-item dl-item line-bot ">
                        <i class="iconfont icon-iconfont32pxshouji1"></i>
                        <input id="username" type="text" name="username" class="username text" placeholder="请输入你的手机号码" v-model="username">
                    </div>
                    <div class="sz-item dl-item line-bot">
                        <i class="iconfont icon-suo"></i>
                        <input id="yzm" type="password" name="yzm" class="password text" placeholder="请输入登录密码" v-model="password">
                    </div>
                </div>
                <div class="btn-box">
                    <button class="btn" type="submit">登录</button>
                </div>
            </div>

        <div class="dl-bot">
            <p class="dl-links clearfix mb10">
                <a href="{:url('web/users/forget')}" class="line-right">忘记密码？</a>
                <a href="###">联系管理员</a>
            </p>
            <ul>
            </ul>
        </div>
    </div>

    
    <!--左侧扇形导航-->
    {include file="common/left-nav" /}
    <!--左侧扇形导航-->
    </div>
    {include file="common/script" /}
    <script>
        $('.btn').click(function () {
            var username = $('.username').val();
            var password = $('.password').val();
            var token = $('input[name="__token__"]').val()
            var url = "{$turl}"+'/web/users/login'
            $.post(url,{username:username,password:password,token:token},function (res) {
                layer.msg(res.msg)
                if(res.code == 1){
                    setInterval(function () {
                        window.location.href = '/web/users/index'
                    },800)

                }
            })

        })
    </script>
</body>
</html>
<!---带扇形 不带footer->
